<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>ζั͡ޓއއއ๓天泽♬</title>

		<!-- Bootstrap -->
		<link rel="stylesheet" href="Frame/bootstrap-3.3.0/dist/css/bootstrap.min.css">
		<link rel="stylesheet" href="Frame/font-awesome-4.7.0/css/font-awesome.min.css">
		<link rel="stylesheet" type="text/css" href="css/isotope.css" media="screen" />
		<link rel="stylesheet" href="css/animate.css">
		<link rel="stylesheet" href="js/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
		<link href="css/style.css" rel="stylesheet">
		<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
		<style>
			canvas {
				cursor: crosshair;
				display: block;
				position: absolute;
				z-index: 0
			}
		</style>
	</head>

	<body>
		<header id="hader">
			<nav div class="navbar navbar-default navbar-static-top" role="navigation">
				<div class="container">
					<ul class="social-network">
						<li>
							<a href="#" data-placement="top" title="weixin"><i class="fa fa-weixin fa-1x"></i></a>
						</li>
						<li>
							<a href="#" data-placement="top" title="weibo"><i class="fa fa-weibo fa-1x"></i></a>
						</li>
						<li>
							<a href="#" data-placement="top" title="apple"><i class="fa fa-apple fa-1x"></i></a>
						</li>
						<li>
							<a href="#" data-placement="top" title="tencent-weibo"><i class="fa fa-tencent-weibo fa-1x"></i></a>
						</li>
					</ul>
					<ul class="info">
						<li>
							<p><i class="fa fa-phone-square"></i>176-0087-7110</p>
						</li>
						<li>
							<p><i class="fa fa-qq "></i>5 7 6 7 9 2 2 5 7</p>
						</li>
					</ul>
				</div>
			</nav>

			<nav class="navbar navbar-default navbar-static-top" role="navigation">
				<div class="navigation">
					<div class="container">
						<div class="navbar-header">
							<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse.collapse">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
							<div class="navbar-brand">
								<a href="index.html">
									<h1>☆天<span><i class="fa fa-bolt"></i></span>泽☆</h1></a>
							</div>
						</div>

						<div class="navbar-collapse collapse">
							<div class="menu" id="menu">
								<ul class="nav nav-tabs" role="tablist">
									<li role="presentation">
										<a href="index.html"><strong>首&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;页</strong></a>
									</li>
									<li role="presentation">
										<a href="services.html" class="active"><strong>燃放烟花</strong></a>
									</li>
									<li role="presentation">
										<a href="luckdraw.html"><strong>抽奖专区</strong></a>
									</li>
									<li role="presentation">
										<a href="#"><strong>红包专区</strong></a>
									</li>
									<li role="presentation">
										<a href="#"><strong>关于我们</strong></a>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</nav>
		</header>

		<div class="slider">
			<div id="ttttt" style='background-color:#000; height:740px;text-align:center;font-size:18px;padding-top:20px;color: #FFFFFF;'>
				<b>点击页面黑色区域燃放烟花！</b>
			</div>
		</div>

		<footer id="footer">
			<div class="inner-footer">
				<div class="container">
					<div class="row">
						<div class="col-md-4 f-about">
							<a href="index.html">
								<h1>☆天<span><i class="fa fa-bolt"></i></span>泽☆</h1></a>
							<p>
								不想缺席你的未来，因为已经错过你的曾经;</br>
								你摇了摇头说不爱了，像极了妓女说不卖了;</br>
								选择题最难过的不是选错，而是曾经选对过;</br>
								哪有无缘无故的点赞还不是想被你多看一眼;</br>
							</p>

						</div>
						<div class="col-md-4 l-posts">
							<h3 class="widgetheading">Latest Posts</h3>
							<ul>
								<li>
									<a href="#">This is awesome post title</a>
								</li>
								<li>
									<a href="#">Awesome features are awesome</a>
								</li>
								<li>
									<a href="#">Create your own awesome website</a>
								</li>
							</ul>
						</div>
						<div class="col-md-4 f-contact">
							<h3 class="widgetheading">Stay in touch</h3>
							<a href="#">
								<p><i class="fa fa-envelope"></i>576792257@QQ.com</p>
							</a>
							<p><i class="fa fa-phone"></i> 176 0087 7110</p>
							<p><i class="fa fa-home"></i> 感谢一路（16）有你★期待一起（17）同行</p>
						</div>
					</div>
				</div>
			</div>

			<div class="last-div">
				<div class="container">
					<div class="row">
						<p style="text-align: center;">
							<a href="#">关于我们</a> |
							<a href="#">意见反馈</a> |
							<a href="#">友情链接</a> |
							<a href="#">免责声明</a> |
							<a href="#">网站统计</a>
						</p>
						<p style="text-align: center;">Copyright © 2016 TSZ . All Rights Reserved</p>
						<p style="text-align: center;">国妓宠爷★天泽 版权所有</p>

						<div class="clear"></div>
					</div>
				</div>
				<a href="" class="scrollup"><i class="fa fa-chevron-up"></i></a>
			</div>
		</footer>

		<!-- JS -->
		<script src="js/jquery-1.11.1.min.js"></script>
		<script src="js/bootstrap.min.js"></script>
		<script src="js/wow.min.js"></script>
		<script src="js/fancybox/jquery.fancybox.pack.js"></script>
		<script src="js/jquery.bxslider.min.js"></script>
		<script src="js/functions.js"></script>

		<script type="text/javascript">
			wow = new WOW({

				})
				.init();

			$(function() {
				var Fireworks = function() {
					var self = this;
					var rand = function(rMi, rMa) {
						return ~~((Math.random() * (rMa - rMi + 1)) + rMi);
					}
					var hitTest = function(x1, y1, w1, h1, x2, y2, w2, h2) {
						return !(x1 + w1 < x2 || x2 + w2 < x1 || y1 + h1 < y2 || y2 + h2 < y1);
					};
					window.requestAnimFrame = function() {
						return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(a) {
							window.setTimeout(a, 1E3 / 60)
						}
					}();

					self.init = function() {
						self.canvas = document.createElement('canvas');
						self.canvas.width = self.cw = $(window).innerWidth();
						self.canvas.height = self.ch = $(window).innerHeight();
						self.particles = [];
						self.partCount = 150;
						self.fireworks = [];
						self.mx = self.cw / 2;
						self.my = self.ch / 2;
						self.currentHue = 30;
						self.partSpeed = 5;
						self.partSpeedVariance = 10;
						self.partWind = 50;
						self.partFriction = 5;
						self.partGravity = 1;
						self.hueMin = 0;
						self.hueMax = 360;
						self.fworkSpeed = 4;
						self.fworkAccel = 10;
						self.hueVariance = 30;
						self.flickerDensity = 25;
						self.showShockwave = true;
						self.showTarget = false;
						self.clearAlpha = 25;

						var idtyee = document.getElementById("ttttt");

						$(idtyee).append(self.canvas);
						self.ctx = self.canvas.getContext('2d');
						self.ctx.lineCap = 'round';
						self.ctx.lineJoin = 'round';
						self.lineWidth = 1;
						self.bindEvents();
						self.canvasLoop();

						self.canvas.onselectstart = function() {
							return false;
						};
					};

					self.createParticles = function(x, y, hue) {
						var countdown = self.partCount;
						while(countdown--) {
							var newParticle = {
								x: x,
								y: y,
								coordLast: [{
									x: x,
									y: y
								}, {
									x: x,
									y: y
								}, {
									x: x,
									y: y
								}],
								angle: rand(0, 360),
								speed: rand(((self.partSpeed - self.partSpeedVariance) <= 0) ? 1 : self.partSpeed - self.partSpeedVariance, (self.partSpeed + self.partSpeedVariance)),
								friction: 1 - self.partFriction / 100,
								gravity: self.partGravity / 2,
								hue: rand(hue - self.hueVariance, hue + self.hueVariance),
								brightness: rand(50, 80),
								alpha: rand(40, 100) / 100,
								decay: rand(10, 50) / 1000,
								wind: (rand(0, self.partWind) - (self.partWind / 2)) / 25,
								lineWidth: self.lineWidth
							};
							self.particles.push(newParticle);
						}
					};

					self.updateParticles = function() {
						var i = self.particles.length;
						while(i--) {
							var p = self.particles[i];
							var radians = p.angle * Math.PI / 180;
							var vx = Math.cos(radians) * p.speed;
							var vy = Math.sin(radians) * p.speed;
							p.speed *= p.friction;

							p.coordLast[2].x = p.coordLast[1].x;
							p.coordLast[2].y = p.coordLast[1].y;
							p.coordLast[1].x = p.coordLast[0].x;
							p.coordLast[1].y = p.coordLast[0].y;
							p.coordLast[0].x = p.x;
							p.coordLast[0].y = p.y;

							p.x += vx;
							p.y += vy;
							p.y += p.gravity;

							p.angle += p.wind;
							p.alpha -= p.decay;

							if(!hitTest(0, 0, self.cw, self.ch, p.x - p.radius, p.y - p.radius, p.radius * 2, p.radius * 2) || p.alpha < .05) {
								self.particles.splice(i, 1);
							}
						};
					};

					self.drawParticles = function() {
						var i = self.particles.length;
						while(i--) {
							var p = self.particles[i];

							var coordRand = (rand(1, 3) - 1);
							self.ctx.beginPath();
							self.ctx.moveTo(Math.round(p.coordLast[coordRand].x), Math.round(p.coordLast[coordRand].y));
							self.ctx.lineTo(Math.round(p.x), Math.round(p.y));
							self.ctx.closePath();
							self.ctx.strokeStyle = 'hsla(' + p.hue + ', 100%, ' + p.brightness + '%, ' + p.alpha + ')';
							self.ctx.stroke();

							if(self.flickerDensity > 0) {
								var inverseDensity = 50 - self.flickerDensity;
								if(rand(0, inverseDensity) === inverseDensity) {
									self.ctx.beginPath();
									self.ctx.arc(Math.round(p.x), Math.round(p.y), rand(p.lineWidth, p.lineWidth + 3) / 2, 0, Math.PI * 2, false)
									self.ctx.closePath();
									var randAlpha = rand(50, 100) / 100;
									self.ctx.fillStyle = 'hsla(' + p.hue + ', 100%, ' + p.brightness + '%, ' + randAlpha + ')';
									self.ctx.fill();
								}
							}
						};
					};

					self.createFireworks = function(startX, startY, targetX, targetY) {
						var newFirework = {
							x: startX,
							y: startY,
							startX: startX,
							startY: startY,
							hitX: false,
							hitY: false,
							coordLast: [{
								x: startX,
								y: startY
							}, {
								x: startX,
								y: startY
							}, {
								x: startX,
								y: startY
							}],
							targetX: targetX,
							targetY: targetY,
							speed: self.fworkSpeed,
							angle: Math.atan2(targetY - startY, targetX - startX),
							shockwaveAngle: Math.atan2(targetY - startY, targetX - startX) + (90 * (Math.PI / 180)),
							acceleration: self.fworkAccel / 100,
							hue: self.currentHue,
							brightness: rand(50, 80),
							alpha: rand(50, 100) / 100,
							lineWidth: self.lineWidth
						};
						self.fireworks.push(newFirework);

					};

					self.updateFireworks = function() {
						var i = self.fireworks.length;

						while(i--) {
							var f = self.fireworks[i];
							self.ctx.lineWidth = f.lineWidth;

							vx = Math.cos(f.angle) * f.speed,
								vy = Math.sin(f.angle) * f.speed;
							f.speed *= 1 + f.acceleration;
							f.coordLast[2].x = f.coordLast[1].x;
							f.coordLast[2].y = f.coordLast[1].y;
							f.coordLast[1].x = f.coordLast[0].x;
							f.coordLast[1].y = f.coordLast[0].y;
							f.coordLast[0].x = f.x;
							f.coordLast[0].y = f.y;

							if(f.startX >= f.targetX) {
								if(f.x + vx <= f.targetX) {
									f.x = f.targetX;
									f.hitX = true;
								} else {
									f.x += vx;
								}
							} else {
								if(f.x + vx >= f.targetX) {
									f.x = f.targetX;
									f.hitX = true;
								} else {
									f.x += vx;
								}
							}

							if(f.startY >= f.targetY) {
								if(f.y + vy <= f.targetY) {
									f.y = f.targetY;
									f.hitY = true;
								} else {
									f.y += vy;
								}
							} else {
								if(f.y + vy >= f.targetY) {
									f.y = f.targetY;
									f.hitY = true;
								} else {
									f.y += vy;
								}
							}

							if(f.hitX && f.hitY) {
								self.createParticles(f.targetX, f.targetY, f.hue);
								self.fireworks.splice(i, 1);

							}
						};
					};

					self.drawFireworks = function() {
						var i = self.fireworks.length;
						self.ctx.globalCompositeOperation = 'lighter';
						while(i--) {
							var f = self.fireworks[i];
							self.ctx.lineWidth = f.lineWidth;

							var coordRand = (rand(1, 3) - 1);
							self.ctx.beginPath();
							self.ctx.moveTo(Math.round(f.coordLast[coordRand].x), Math.round(f.coordLast[coordRand].y));
							self.ctx.lineTo(Math.round(f.x), Math.round(f.y));
							self.ctx.closePath();
							self.ctx.strokeStyle = 'hsla(' + f.hue + ', 100%, ' + f.brightness + '%, ' + f.alpha + ')';
							self.ctx.stroke();

							if(self.showTarget) {
								self.ctx.save();
								self.ctx.beginPath();
								self.ctx.arc(Math.round(f.targetX), Math.round(f.targetY), rand(1, 8), 0, Math.PI * 2, false)
								self.ctx.closePath();
								self.ctx.lineWidth = 1;
								self.ctx.stroke();
								self.ctx.restore();
							}

							if(self.showShockwave) {
								self.ctx.save();
								self.ctx.translate(Math.round(f.x), Math.round(f.y));
								self.ctx.rotate(f.shockwaveAngle);
								self.ctx.beginPath();
								self.ctx.arc(0, 0, 1 * (f.speed / 5), 0, Math.PI, true);
								self.ctx.strokeStyle = 'hsla(' + f.hue + ', 100%, ' + f.brightness + '%, ' + rand(25, 60) / 100 + ')';
								self.ctx.lineWidth = f.lineWidth;
								self.ctx.stroke();
								self.ctx.restore();
							}
						};
					};

					self.bindEvents = function() {
						$(window).on('resize', function() {
							clearTimeout(self.timeout);
							self.timeout = setTimeout(function() {
								self.canvas.width = self.cw = $(window).innerWidth();
								self.canvas.height = self.ch = $(window).innerHeight();
								self.ctx.lineCap = 'round';
								self.ctx.lineJoin = 'round';
							}, 100);
						});

						$(self.canvas).on('mousedown', function(e) {
							self.mx = e.pageX - self.canvas.offsetLeft;
							self.my = e.pageY - self.canvas.offsetTop;
							self.currentHue = rand(self.hueMin, self.hueMax);
							self.createFireworks(self.cw / 2, self.ch, self.mx, self.my);

							$(self.canvas).on('mousemove.fireworks', function(e) {
								self.mx = e.pageX - self.canvas.offsetLeft;
								self.my = e.pageY - self.canvas.offsetTop;
								self.currentHue = rand(self.hueMin, self.hueMax);
								self.createFireworks(self.cw / 2, self.ch, self.mx, self.my);
							});
						});

						$(self.canvas).on('mouseup', function(e) {
							$(self.canvas).off('mousemove.fireworks');
						});

					}

					self.clear = function() {
						self.particles = [];
						self.fireworks = [];
						self.ctx.clearRect(0, 0, self.cw, self.ch);
					};

					self.canvasLoop = function() {
						requestAnimFrame(self.canvasLoop, self.canvas);
						self.ctx.globalCompositeOperation = 'destination-out';
						self.ctx.fillStyle = 'rgba(0,0,0,' + self.clearAlpha / 100 + ')';
						self.ctx.fillRect(0, 0, self.cw, self.ch);
						self.updateFireworks();
						self.updateParticles();
						self.drawFireworks();
						self.drawParticles();

					};

					self.init();

				}
				var fworks = new Fireworks();

			});
		</script>

	</body>

</html>
<div style="display:none">
	<script type="text/javascript">
		var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
		document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F6f798e51a1cd93937ee8293eece39b1a' type='text/javascript'%3E%3C/script%3E"));
	</script>
	<script type="text/javascript">
		var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
		document.write(unescape("%3Cspan id='cnzz_stat_icon_5718743'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s9.cnzz.com/stat.php%3Fid%3D5718743%26show%3Dpic2' type='text/javascript'%3E%3C/script%3E"));
	</script>
</div>